package org.gxuwz.core.service.Impl;

import java.util.List;

import org.gxuwz.core.dao.IAreaDao;
import org.gxuwz.core.entity.TArea;
import org.gxuwz.core.service.IAreaService;
import org.gxuwz.core.service.ICommissureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository("AreaService")
public class AreaService implements IAreaService{
	@Autowired
	IAreaDao areaDao;
	
	@Override
	public void addAreaDao(TArea area) {
		areaDao.addArea(area);		
	}

	@Override
	public List<TArea> getAll(String areaname, String areacode) {
		// TODO Auto-generated method stub
		return areaDao.getAll(areaname, areacode);
	}

	@Override
	public TArea getByAreaName(String areaname) {
		// TODO Auto-generated method stub
		return areaDao.getByAreaName(areaname);
	}


	@Override
	public void update(TArea area) {
		areaDao.update(area);		
	}

	@Override
	public void delete(TArea area) {
		// TODO Auto-generated method stub
		areaDao.delete(area);
	}

}
